package route

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/mvc"
	"storeManageApi/controllers"
	"storeManageApi/core/middleware"
	"storeManageApi/service"
)

func manageRoute(party iris.Party) {
	var manageParty iris.Party = party.Party("/manage", middleware.AuthBasic)
	var manageService service.ImanageService = service.CreateManageService()
	mvc.Configure(manageParty).
		Register(service.ResponseService).
		Register(manageService).
		Handle(new(controllers.ManageController))
}
